﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Map.StampApprove
{
    using NHibernate;
    using NHibernate.Mapping.ByCode;
    using NHibernate.Mapping.ByCode.Conformist;

    using DB_NH.DB_Model.StampApprove;

    public class map_StampApproveFlowEvaluationDetail : EntityMapping<StampApproveFlowEvaluationDetail>
    {
        public map_StampApproveFlowEvaluationDetail()
        {
            ManyToOne(x => x.Flow, map =>
            {
                map.Column("StampApproveId");
            });

            ManyToOne(x => x.EvaluationType, map =>
            {
                map.Column("TypeId");
            });

            Property(x => x.ItemDescribe, map =>
            {
                map.Length(800000);
            });

            Property(x => x.ItemName, map =>
            {
                map.Length(200);
            });

            Property(x => x.ItemValue, map =>
            {

            });

            Property(x => x.ItemPage, map =>
            {
                map.Length(200);
            });

            Property(x => x.ItemInQuality, map =>
            {
            });
        }
    }
}
